home *** CD-ROM | disk | FTP | other *** search
- /* Copyright © 1995-1996 : David Atkinson */
- /* V1.21 Ports.c */
- /* Calgor */
-
- #include <string.h>
- #include <fcntl.h>
- #include <dos/dos.h> /* get BPTR define */
- #include <stdio.h>
- #include <stdlib.h>
-
- BPTR record;
-
- void open_log(void)
- {
- record = open("CalLog",MODE_NEWFILE);
- if (record<0)
- printf("Couldn't open CalLog file!\n");
- }
-
- void close_file(void)
- {
- if(record>=0)
- close(record);
- }
-
- void write_file(char *message)
- {
- long bytes_read;
-
- if(record>=0)
- bytes_read=write(record,message,strlen(message));
- }
-
-
-